public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        // 二叉树的基本的操作
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();
        System.out.println("节点的个数1: "+testBinaryTree.size(root));
        testBinaryTree.size2(root);
        System.out.println("节点的个数2: "+TestBinaryTree.nodeSize); // 但是尽量不要加static
        System.out.println("叶子节点的个数: "+testBinaryTree.getLeafNodeCount(root));
        testBinaryTree.getLeafNodeCount1(root);
        System.out.println("叶子节点的个数2: "+testBinaryTree.leafSize);

        System.out.println("第k层的节点个数 "+testBinaryTree.getKLeveNodeCount(root,3));

        System.out.println("二叉树的高度为："+testBinaryTree.getHeight(root));
    }
}